﻿using System;
using System.ComponentModel.DataAnnotations;
using Viettel.VOFFICE.DAO.Enums;
using Viettel.VOFFICE.DAO.Helpers;
using Viettel.VOFFICE.DAO.Models;

namespace Viettel.VOFFICE.Web.Models
{
    public class PositionModel : BaseModel
    {
        //khai báo các cột của bảng v_position;
        public int Id { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public bool? IsActive { get; set; }
        public DateTime CreatedAt { get; set; }
        public DateTime UpdatedAt { get; set; }
        public Guid? CreatorId { get; set; }

        public PositionModel()
        {
            CreatedAt = DateTime.Now;
            UpdatedAt = DateTime.Now;
            IsActive = true;
        }

        public PositionModel(v_Position position)
        {
            Id = position.Id;
            Name = position.Name;
            Description = position.Description;
            IsActive = position.IsActive;
            CreatedAt = position.CreatedAt;
            UpdatedAt = position.UpdatedAt;
            CreatorId = position.CreatorId;
        }
    }

   
}